<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="SampleBAM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="BAM_Activity_Schema">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="CLM_837I">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ReceiveClaim" minOccurs="0" type="xs:dateTime" />
              <xs:element name="Claim_CLM02_TotalClaimCharge" minOccurs="0" type="xs:float" />
              <xs:element name="Claim_CLM01_PatientAccountNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="Payer_NM109_PayerIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="CommunicationMethod" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="Patient_PAT01_IndividualRelationshipCode" minOccurs="0" type="xs:string" />
              <xs:element name="RoutedTo" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM104_SubscriberFirstName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM105_SubscriberLastName" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="unbounded" name="EB_270">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InfoSource_NM101_SourceEntityIdentifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="InfoSource_NM103_SourceLastOrOrganizationName" minOccurs="0" type="xs:string" />
              <xs:element name="InfoSource_NM109_SourcePrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM101_ReceiverEntityIdentifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM102_ReceiverEntityTypeQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM103_ReceiverLastOrOrganizationName" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_NM109_ReceiverIDNumber" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF01_ReceiverRefIDQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF02_ReceiverAdditionalIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="InfoReceiver_REF03_LicenseNumberStateCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN02_TraceNumber" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN03_TraceAssigningEntityID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_TRN04_TraceAssigningEntityAdditionalID" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM103_SubscriberDependentLastName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM104_SubscriberDependentFirstName" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
              <xs:element name="SendRequest" minOccurs="0" type="xs:dateTime" />
              <xs:element name="Subscriber_PRV01_ProviderCode" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_PRV03_ProviderIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="BHT03_SubmitterTransactionIdentifier" minOccurs="0" type="xs:string" />
              <xs:element name="CommunicationMethod" minOccurs="0" type="xs:string" />
              <xs:element name="RoutedTo" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="unbounded" name="EB_270_Details">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Subscriber_TRN03_TraceNumber" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ01_ServiceTypeCode" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProductOrServiceIDQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProcedureCode" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProcedureModifier1" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProcedureModifier2" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProcedureModifier3" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ2_ProcedureModifier4" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ3_BenefitCoverageLevelCode" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiry_EQ4_InsuranceTypeCode" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberSpend_AMT01_AmountQualifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberSpend_AMT02_SpendDownAmount" minOccurs="0" type="xs:float" />
              <xs:element name="BenefitInquiryAdd_III01_CodeListQualifierCode" minOccurs="0" type="xs:string" />
              <xs:element name="BenefitInquiryAdd_III02_IndustryCode" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberAddInfo_REF01_ReferenceIDQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberAddInfo_REF02_PriorAuthorizationNumber" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberEligibility_DTP01_DateTimeQualifier" minOccurs="0" type="xs:string" />
              <xs:element name="SubscriberEligibility_DTP02_DateTimePeriod" minOccurs="0" type="xs:string" />
              <xs:element name="Subscriber_NM109_SubscriberPrimaryID" minOccurs="0" type="xs:string" />
              <xs:element name="IsDependent" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element maxOccurs="unbounded" name="GeneralMessage_Info">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MessageTypeInfo" minOccurs="0" type="xs:string" />
              <xs:element name="MessageTime" minOccurs="0" type="xs:dateTime" />
              <xs:element name="MessageSource" minOccurs="0" type="xs:string" />
              <xs:element name="BTSMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="BTSInterchangeID" minOccurs="0" type="xs:string" />
              <xs:element name="ServerNameInfo" minOccurs="0" type="xs:string" />
              <xs:element name="TransportLoc" minOccurs="0" type="xs:string" />
              <xs:element name="TransportType" minOccurs="0" type="xs:string" />
              <xs:element name="PortName" minOccurs="0" type="xs:string" />
              <xs:element name="OriginalMessageID" minOccurs="0" type="xs:string" />
              <xs:element name="OriginalActivityID" minOccurs="0" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>